From 3a04f5627ef5c385d6d017ec0d55b0a95479e767 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Fri, 6 Dec 2013 16:24:10 +0200 Subject: [PATCH] * lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function): Touch up the last change. --- lisp/ChangeLog | 5 +++++ lisp/progmodes/ruby-mode.el | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b33d0348157..cfd3934a3aa 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-12-06 Dmitry Gutov + + * progmodes/ruby-mode.el (ruby-syntax-propertize-function): Touch + up the last change. + 2013-12-06 Leo Liu * progmodes/octave.el (inferior-octave-prompt): Use shy groups. diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index be12b1474c3..3d30cb015d6 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el @@ -1652,8 +1652,8 @@ It will be properly highlighted even when the call omits parens.") (0 (unless (save-excursion (or (nth 8 (syntax-ppss (match-beginning 0))) (let (parse-sexp-lookup-properties) - (or (zerop (skip-syntax-backward "w_")) - (memq (preceding-char) '(?@ ?$)))))) + (zerop (skip-syntax-backward "w_"))) + (memq (preceding-char) '(?@ ?$)))) (string-to-syntax "_")))) ;; Regular expressions. Start with matching unescaped slash. ("\\(?:\\=\\|[^\\]\\)\\(?:\\\\\\\\\\)*\\(/\\)" -- 2.30.2